package com.tinem.platform.module.pojo.co;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className GatewayHeadName
 * @description TODO
 * @site 
 * @company 
 * @create 2020-09-29 16:05
 */
public class GatewayHeadName {

    // -------------------------------------【网关请求信息】----------------------------------------------------------------
    public final static String X_PLATFORM_GATEWAY_URL_TIMESTAMP = "timestamp";
    public final static String X_PLATFORM_GATEWAY_REQ_TIMESTAMP = "x-platform-gateway-req-timestamp";
    public final static String X_PLATFORM_GATEWAY_REQ_SERVICE = "x-platform-gateway-req-service";
    public final static String X_PLATFORM_GATEWAY_REQ_METHOD = "x-platform-gateway-req-method";
    public final static String X_PLATFORM_GATEWAY_REQ_VERSION = "x-platform-gateway-req-version";
    public final static String X_PLATFORM_GATEWAY_REQ_API_REQUEST_ID = "x-platform-gateway-req-api_request_id";
    public final static String X_PLATFORM_GATEWAY_REQ_JWT = "x-platform-gateway-req-jwt";
    public final static String X_PLATFORM_GATEWAY_REQ_CHARSET = "x-platform-gateway-req-charset";
    public final static String X_PLATFORM_GATEWAY_REQ_LANG = "x-platform-gateway-req-lang";
    public final static String X_PLATFORM_GATEWAY_REQ_SIGN_TYPE = "x-platform-gateway-req-sign_type";
    public final static String X_PLATFORM_GATEWAY_REQ_SIGN = "x-platform-gateway-req-sign";
    public final static String X_PLATFORM_GATEWAY_REQ_CRYPTO_TYPE = "x-platform-gateway-req-crypto_type";
    public final static String X_PLATFORM_GATEWAY_REQ_CRYPTO_KEY = "x-platform-gateway-req-crypto_key";
    public final static String X_PLATFORM_GATEWAY_REQ_CRYPTO_IV = "x-platform-gateway-req-crypto_iv";
    public final static String X_PLATFORM_GATEWAY_REQ_BODY = "x-platform-gateway-req-body";
    public final static String X_PLATFORM_GATEWAY_REQ_DEBUG = "x-platform-gateway-req-debug";
    //用户设备id
    public final static String X_PLATFORM_GATEWAY_REQ_DEVICE = "x-platform-gateway-req-device";
    //通过cloudflare获取客户真实ip与ip对应的国家
    public final static String X_PLATFORM_GATEWAY_REQ_IP = "x-platform-gateway-req-ip";
    public final static String X_PLATFORM_GATEWAY_REQ_IP_COUNTRY = "x-platform-gateway-req-ip-country";

    // -------------------------------------【网关请求上下文信息】----------------------------------------------------------------
    //网关请求流水号
    public final static String X_PLATFORM_GATEWAY_REQUEST_ID = "x-platform-gateway-request_id";
    public final static String X_PLATFORM_GATEWAY_CONTEXT_JTI = "x-platform-gateway-context-"+JwtPropertyName.JTI;
    public final static String X_PLATFORM_GATEWAY_CONTEXT_USER_ID = "x-platform-gateway-context-user_id";
    public final static String X_PLATFORM_GATEWAY_CONTEXT_CLIENT_ID = "x-platform-gateway-context-client_id";
    //网关接收到请求的时间
    public final static String X_PLATFORM_GATEWAY_CONTEXT_ACCEPT_TIMESTAMP = "x-platform-gateway-accept-timestamp";
    //网关环境
    public final static String X_PLATFORM_GATEWAY_CONTEXT_ENV = "x-platform-gateway-request-env";

    // -------------------------------------【业务系统返回信息】------------------------------------------------------------
    public final static String X_PLATFORM_RES_SUCCESS = "x-platform-res-success";
    public final static String X_PLATFORM_RES_CODE = "x-platform-res-code";
    public final static String X_PLATFORM_RES_MESSAGE = "x-platform-res-message";
    public final static String X_PLATFORM_RES_TIMESTAMP = "x-platform-res-timestamp";

    // -------------------------------------【业务系统分页返回信息】--------------------------------------------------------
    // 当前页码
    public final static String X_PLATFORM_RES_PAGE_CURRENT = "x-platform-page-current";
    // 当前页行数
    public final static String X_PLATFORM_RES_PAGE_SIZE = "x-platform-page-size";
    // 总记录数
    public final static String X_PLATFORM_RES_PAGE_TOTAL = "x-platform-page-total";
    // 总页数
    public final static String X_PLATFORM_RES_PAGE_PAGES = "x-platform-page-pages";

    // -------------------------------------【网关返回信息】---------------------------------------------------------------
    public final static String X_PLATFORM_GATEWAY_RES_SUCCES = "x-platform-gateway-res-succes";
    public final static String X_PLATFORM_GATEWAY_RES_CODE = "x-platform-gateway-res-code";
    public final static String X_PLATFORM_GATEWAY_RES_MESSAGE = "x-platform-gateway-res-message";
    public final static String X_PLATFORM_GATEWAY_RES_TIMESTAMP = "x-platform-gateway-res-timestamp";
    public final static String X_PLATFORM_GATEWAY_RES_SIGN = "x-platform-gateway_res_sign";
    public final static String X_PLATFORM_GATEWAY_RES_SIGN_TYPE = "x-platform-gateway_res_sign_type";
    public final static String X_PLATFORM_GATEWAY_RES_CRYPTO_TYPE = "x-platform-gateway_res_crypto_type";
    public final static String X_PLATFORM_GATEWAY_RES_BODY = "x-platform-gateway-res-body";
}
